package com.azzcs.userservice.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: wzg
 * @Date: 2021/2/22 下午5:48
 */
@FeignClient(value = "code-service",path = "/code-service")
public interface CodeService {
    @PostMapping("/code/check")
    Boolean checkCode(@RequestParam("email") String email,
                      @RequestParam("code") Integer code);
}
